import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter)

export default new VueRouter({
    mode:'hash',
    routes:[
        {
            path:'/shouye',
            name:'shouye',
            component:()=>import('@/views/ShouYe.vue')
        },
        {
            path:'/cate',
            name:'cate',
            component:()=>import('@/views/Cate.vue'),
            children:[
                {
                    path:'/cate/nanzhuang',
                    name:'NanZhuang',
                    component:()=>import('@/views/cate/NanZhuang.vue')
                },
                {
                    path:'/cate/nanxie',
                    name:'NanXie',
                    component:()=>import('@/views/cate/NanXie.vue')
                },
                {
                    path:'/cate/nvzhuang',
                    name:'NvZhuang',
                    component:()=>import('@/views/cate/NvZhuang.vue')
                },
                {
                    path:'/cate/nvxie',
                    name:'NvXie',
                    component:()=>import('@/views/cate/NvXie.vue')
                },
                {
                    path:'/',
                    redirect:{
                        path:'/cate/nanzhuang'
                    }
                }
            ]
        },
        {
            path:'/car',
            name:'car',
            component:()=>import('@/views/Car.vue')
        },
        {
            path:'/my',
            name:'my',
            component:()=>import('@/views/My.vue')
        }
    ]
})